﻿using Global.Core.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ViewModel
{
    public class RegisterModel
    {
        [Display(Name = "用户名")]
        [ZyfeiRequired]
        [ZyfeiStringLength(25)]
        public string UserName { get; set; }

        [Display(Name = "密码")]
        [DataType(DataType.Password)]
        [ZyfeiRequired]
        [ZyfeiStringLength(20, MinimumLength = 4)]
        public string Password { get; set; }

        [Compare("Password",ErrorMessage="* 确认密码和密码不一致")]
        [Display(Name = "确认密码")]
        [DataType(DataType.Password)]
        [ZyfeiRequired]
        [ZyfeiStringLength(20, MinimumLength = 4)]
        public string ComfirmPassword { get; set; }
    }
}
